package com.yyq.io;

import java.io.InputStream;

/**
 * @Author yuanyueqiang
 * @Date 2021-11-27 20:51
 */
public class Resources {

    // 根据配置文件的路径, 将配置文件加载成字节输入流, 存储在内存中
    public static InputStream getResourcesAsStream(String path){
        InputStream inputStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return inputStream;
    }
}
